﻿using System;
using System.Collections.Generic;

namespace Chengheng.Entity.Models;

/// <summary>
/// 用户_角色_权限
/// </summary>
public partial class UserAuthority
{
    public long Id { get; set; }

    /// <summary>
    /// 权限名称
    /// </summary>
    public string? Authority { get; set; }

    /// <summary>
    /// routerPath
    /// </summary>
    public string? RouterPath { get; set; }

    /// <summary>
    /// 排序编号
    /// </summary>
    public short? SortNumber { get; set; }

    /// <summary>
    /// 上级id; 0 顶级
    /// </summary>
    public long? ParentId { get; set; }

    public virtual ICollection<UserAuthority> InverseParent { get; set; } = new List<UserAuthority>();

    public virtual UserAuthority? Parent { get; set; }
}
